to Dynamic Interpolated Sp Px
fun Number.toDynamicInterpolatedSpPx(context: Context, qualifier: DpQualifier, fontScale: Boolean = true, inverter: Inverter = Inverter.DEFAULT, ignoreMultiWindows: Boolean = false, applyAspectRatio: Boolean = false, customSensitivityK: Float? = null): Float
EN Converts an Int (the base Sp value) into a dynamically scaled pixel value (Float).
Sp→px uses scaledSp * density * fontScale when respecting font scale (equivalent to android.util.TypedValue.applyDimension for COMPLEX_UNIT_SP), else scaledSp * density for the fixed-Sp path. For many lookups, prefer DimenCache.getBatch; for early DataStore init, DimenInterpolatedSp.warmupCache.
PT Converte um Int (o valor base de Sp) em um valor de pixel dinamicamente escalado (Float).
Return
The scaled pixel value.
Parameters
context
The Android context to access configuration and density.
qualifier
The screen qualifier used for scaling (sw, h, w).
font Scale
Whether to respect the system font scale.